<?php
include("inc/config.inc");
$link = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD);
						if(!$link) {
							die('Failed to connect to server: ' . mysql_error());
						}
						
						//Select database
						$db = mysql_select_db(DB_DATABASE);
						if(!$db) {
							die("Unable to select database");
						}
						
if(isset($_POST['user_id']))
{
$id=$_POST['user_id'];
$select = mysql_query("DELETE FROM perm_members WHERE id='".$id."'");
if($select){
	?>
		<button type="button" class="close" data-dismiss="alert">&times;</button>
  		<strong>SUCCESS: </strong> Deleted Successfully.
	<?php
}
else{
	?>
		<button type="button" class="close" data-dismiss="alert">&times;</button>
    	<strong>FAILED: </strong> Not Deleted.
	<?php
	echo mysql_error();
}
}
?>